<template>
    <el-table :data="tableData" stripe border style="width: 100%">
        <el-table-column prop="c_name" label="科目" width="180" />
        <el-table-column prop="t_name" label="老师" width="180" />
    </el-table>
</template>

<script setup>
import { ElTable } from "element-plus";
import { reactive, onMounted, ref, watchEffect, watch } from "vue";
import { getStudentCourseById } from '../API/ApiMethod'
components: {
    ElTable
}
const props = defineProps({
    studentGradeId: {
        require: true
    }
})
getStudentCourseById(props.studentGradeId).then(res => {
    if (res.code == 10000) {
        res.data.forEach(item => {
            tableData.push(item)
        })
    }
})
const tableData = reactive([

])
</script>

<style>

</style>